import request from '@/utils/request'

let giftProductApi = {



  /*赠品列表*/
  productklist(data, errorback) {
    return request._post('/supplier/giftproduct.giftproduct/index', data, errorback);
  },

// 获取商品
  getProduct(data, errorback) {
    return request._get('/supplier/giftproduct.giftproduct/add', data, errorback);
  },
  /*赠品添加*/
  addProduct(data, errorback) {
    return request._post('/supplier/giftproduct.giftproduct/add', data, errorback);
  },
  /*赠品详情*/
  ProductkDetail(data, errorback) {
    return request._get('/supplier/giftproduct.giftproduct/edit', data, errorback);
  },
  /*赠品编辑*/
  editProduct(data, errorback) {
    return request._post('/supplier/giftproduct.giftproduct/edit', data, errorback);
  },
  /*删除赠品*/
  deleteProduct(data, errorback) {
    return request._post('/supplier/giftproduct.giftproduct/delete', data, errorback);
  },



}

export default giftProductApi;
